<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>牧心农业</title>
    <link rel="stylesheet" type="text/css" href="/static/css/eui.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/mobile.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/iconfont.css" />
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/js/doT.min.js"></script>
    <script src="/static/js/func.js"></script>
</head>
<body>
    <div class="content margin_top_foot">
        <header class="header fixed_top bg_mx_green"></header>
        <div class="lists bg_white text_center"></div>
        <footer class="foot_tab fixed_bottom mx_green font_16"></footer>
    </div>
    <script type="text/template" charset="utf-8" id='list_template'>
        <div class="padding_15 border_b flex">
            <div class="flex_1">时间</div>
            <div class="flex_1">操作</div>
            <div class="flex_1">使用积分</div>
            <!--<div class="flex_1">剩余积分</div>-->
        </div>
        {{for(var i=0;i<it.length;i++){}}
        <div class="padding_10_15 border_b font_12 light flex">
            <div class="flex_1">{{=it[i].time}}</div>
            <div class="flex_1">{{=it[i].title}}</div>
            <div class="flex_1">{{=it[i].credit}}</div>
            <!--<div class="flex_1">{{=it[i].type}}</div>-->
        </div>
        {{}}}
    </script>
    <script>
        // 仔猪列表
//            var lists = [
//                {time:"2017-06-18",title:"购买商品",credit:"50",score:"200"},
//                {time:"2017-06-18",title:"购买商品",credit:"50",score:"100"},
//                {time:"2017-06-20",title:"购买商品",credit:"50",score:"50"},
//            ];
            var lists = <{$record}>;
            var evallist = doT.template($("#list_template").text());
            loaddata(".lists",evallist,lists)
        // 页面初始化
            loadheadbar("积分纪录");
            loadfootbar();
    </script>
</body>
</html>
